/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Jiang Jinxi
 * Date: 2024-08-30
 * Time: 19:30
 */
public class Demo18 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        System.out.println("等待前");
        synchronized(object){
            object.wait();
        }
        System.out.println("等待之后");
    }
}
